package com.hzw.saas.web.admin.hpc.param;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author sonam
 * @since 2021/4/4 21:14
 */

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("补充HPC可用核时参数")
public class AddHpcCoreTimeParam {

    @NotBlank(message = "HPC账号ID不能为空")
    @ApiModelProperty(value = "HPC账号ID")
    private String hpcAccountId;

    @NotNull(message = "补充的核时不能为空")
    @Min(value = 1, message = "补充的核时不能小于1")
    @ApiModelProperty(value = "补充的核时数量")
    private Double coreTime;

}
